<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>

	<title>Annotations</title>
	<script type="text/javascript" src="js/mummy.js" charset="utf-8"></script>
</head>

<body>
    <textarea id="json"></textarea>

</body>
<script type="text/javascript" charset="utf-8">
/*----------------------------------------------------------------------------*/
NameSpace("World");

    Class({
        $define:function Human(){
            /*[@FirstName: {type:'TEXT'}  {default:"John"}]*/
            this.FirstName;
            /*[@LastName: {type:'TEXT'}  {default:"Doe"}]*/
            this.LastName;
            this.Human = function(f,l){
                this.FirstName=f;
                this.LastName=l;
            };
            this.toString = function(){
                return this.FirstName+" "+this.LastName;
            }
        },
        $static:{/*static*/
            Counter : 0
        }
    });

EndNameSpace();
/*----------------------------------------------------------------------------*/

NameSpace("France");

    Class({
        $extends:World.Human,
        $define:function Man(){
            this.Sexe="Male";
            this.Man = function(f,l){
                this.Human(f,l);
            }
        }
    });

EndNameSpace();

//console.log(World.Human);
console.log(World.Human.Counter);

//var bob = $(Human).New("Bob","Morane");

var bob = $(World.Human).New("Bob","Morane");

console.log(bob);
console.log(bob.toString());
//console.log(World.Human.Counter);

var clark = $(France.Man).New("Clark","Kent");
console.log(clark);

</script>

</html>
